#include "testplugin.h"
#include "free-cube/datamidi.h"
#include "free-cube/logger.h"

using namespace fc;
TestPlugin::TestPlugin() : APlugin("test_plug")
{
}

void TestPlugin::process(size_t size){
    if (input_data_ == NULL) return;
    for (int i = 0; i<input_data_->count(); ++i){
        AData * data = (*input_data_)[i];
        if( data->type() == AData::k_adata_midi_3){
            DataMidi * dm = static_cast <DataMidi*> (data);
            fc::log("TPLGIN: got midi at time # %1", dm->time());
        }
    }
}
